#!/bin/bash


PID=$(ps -ef | grep mmse_server.py | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo mmse_server is already stopped
else
echo kill -9 $PID
kill -9 $PID
fi

export LANG=zh_CN.UTF-8
export PYTHONIOENCODING=utf-8
# web
source /root/pyenv/bin/activate && nohup python mmse_server.py > nohup.log 2>&1 &